package LastStrlenght;

public class Test {
    public static int lastLenght(String s) {
        /*String[] ss = s.split(" ");
        int len = ss[ss.length-1].length();
        return len;*/
        int index = s.lastIndexOf(" ");
        int len = s.substring(index + 1).length();
        return len;
    }
}
